import request from '@/utils/request'

// 查询视频列表
export function listVido(query) {
  return request({
    url: '/system/vido/list',
    method: 'get',
    params: query
  })
}

// 查询视频详细
export function getVido(vidoId) {
  return request({
    url: '/system/vido/' + vidoId,
    method: 'get'
  })
}

// 新增视频
export function addVido(data) {
  return request({
    url: '/system/vido',
    method: 'post',
    data: data
  })
}

// 修改视频
export function updateVido(data) {
  return request({
    url: '/system/vido',
    method: 'put',
    data: data
  })
}

// 删除视频
export function delVido(vidoId) {
  return request({
    url: '/system/vido/' + vidoId,
    method: 'delete'
  })
}
